package com.winit.uschedule.repository;

import com.winit.uschedule.model.UsTaskDefine;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wanglin on 2018/6/14.
 */
@Repository
public interface UsTaskDefineRepository extends PagingAndSortingRepository<UsTaskDefine, Long>, JpaSpecificationExecutor<UsTaskDefine> {

    @Query(value = "select * from us_task_define",nativeQuery = true)
    List<UsTaskDefine> getAll();
}
